package com.jk.mapper;

import com.jk.bean.Permission;
import com.jk.bean.Role;
import com.jk.bean.Staff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShorMapper {
    List<String> getPermission(String staffName);

    Staff getUser(String username);

    String queryUser(String username);

    Staff existsPhone(String num);

    Staff heiPhone(String phone_number);

    Staff queryStaff(String staffName);

    void goRegister(Staff sd);

    List<Role> queryRole();

    Role updaRole(String id);

    void delRole(@Param("id") String ids);

    void addRole(Role role);

    List<Permission> queryPer();

    void delPer(@Param("id") String ids);

    Permission updaPer(String id);

    void updatePer(Permission per);

    void addPer(Permission per);

    void delStaff(String id);

    void upadteRole(Role role);
}
